package com.mpyy.interceptor;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @version 1.0
 * @Description BankTransactionInterceptor
 * @Author YYJC
 * @Date 2022-01-14 10:26
 */
@Component
public class BankTransactionInterceptor implements HandlerInterceptor {
   /* @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        System.out.println("调用了拦截器");

        //2.2 通过重定向跳转至登录页面
        response.sendRedirect("bank_login.html");
        return false;
    }*/
}
